package com.dudy.simpleFactory;

/**
 * @author <a href="mailto:wb-zhaojunwei@alibaba-inc.com">wb-zhaojunwei</a>
 * @version 1.0
 * @Description 主体类
 * @Since 2016/5/26
 */
public class Computer {
    private Output output;
    private String name;

    public void keyIn(String msg) {
        output.getData(msg);
    }

    public void print() {
        output.out();
    }
    public Output getOutput() {
        return output;
    }

    public void setOutput(Output output) {
        this.output = output;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
